//
//  VerifyView.m
//  shusheng
//
//  Created by rimi on 16/7/18.
//  Copyright © 2016年 yuying. All rights reserved.
//

#import "VerifyView.h"

@interface VerifyView()
- (void)initializeInterface;  //初始化用户界面
@end
@implementation VerifyView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initializeInterface];
    }
    return self;
}

-(void)initializeInterface{
    [self addSubview:self.verifyName];
    [self addSubview:self.verifyContent];
    [self addSubview:self.yorNVerifyLabel];
    [self addSubview:self.yorNVerifyImg];
}

#pragma mark -- Getter --
-(UILabel *)verifyName{
    if (!_verifyName) {
        _verifyName = [[UILabel alloc]init];
        _verifyName.frame = CGRectMake(20, 5, 50, 30);
        [_verifyName setTextColor:[UIColor blackColor]];
    }
    return _verifyName;
}
-(UILabel *)verifyContent{
    if (!_verifyContent) {
        _verifyContent = [[UILabel alloc]init];
        _verifyContent.frame = CGRectMake(CGRectGetMaxX(self.verifyName.frame)+10, 5, 150, 30);
        [_verifyContent setTextColor:[UIColor grayColor]];
    }
    return _verifyContent;
}
-(UILabel *)yorNVerifyLabel{
    if (!_yorNVerifyLabel) {
        _yorNVerifyLabel = [[UILabel alloc]init];
        _yorNVerifyLabel.bounds = CGRectMake(0, 0, 70, 30);
        _yorNVerifyLabel.center = CGPointMake(CGRectGetMaxX(self.verifyContent.frame)+50, CGRectGetMidY(self.verifyContent.frame));
        _yorNVerifyLabel.text = @"未验证";
        [_yorNVerifyLabel setTextColor:[UIColor grayColor]];
    }
    return _yorNVerifyLabel;
}
-(UIImageView *)yorNVerifyImg{
    if (!_yorNVerifyImg) {
        _yorNVerifyImg = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"未验证.png"]];
        _yorNVerifyImg.bounds = CGRectMake(0, 0, 32, 32);
        _yorNVerifyImg.center = CGPointMake(CGRectGetMaxX(self.yorNVerifyLabel.frame)+20, CGRectGetMidY(self.verifyContent.frame));
    }
    return _yorNVerifyImg;
}
@end
